package com.egov.wrdmp.reporting.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.egov.wrdmp.reporting.dao.ExpenseDAO;
import com.egov.wrdmp.reporting.dao.ReportDAO;
import com.egov.wrdmp.reporting.model.Expense;
import com.egov.wrdmp.reporting.service.ExpenseService;
@Service
public class ExpenseServiceImpl implements ExpenseService {
	@Autowired
	private ExpenseDAO expenseDAO;
	@Transactional
	public void addExpense(Expense expense) {
		expenseDAO.addExpense(expense);

	}

	@Transactional
	public List<Expense> listExpense() {
		
		return expenseDAO.listExpense();
	}

	@Transactional
	public void removeExpense(Integer id) {
		expenseDAO.removeExpense(id);

	}

}
